<template>
  <router-link class="swiper-a" :to="link">
    <img :style="{width}" :src="image" :alt="title"/>
  </router-link>
</template>

<script>
  export default {
    name: "SwiperItem",
    data() {
      return {
        width: null
      }
    },
    props: {
      link: String,
      image: String,
      title: String
    }
  }
</script>

<style scoped>
  .swiper-a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .swiper-a img {
    width: 100%;
    height: 100%;
    display: block;
  }
</style>